﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="modellabel_modify.aspx.cs"
    Inherits="admin_manager_modelitemplate_modify" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <style type="text/css">
        td
        {
            font-size: 9pt;
        }
    </style>

    <script src="../js/jquery-1.4.2.js" type="text/javascript"></script>

    <script src="../js/jquery-1.4.2-vsdoc.js" type="text/javascript"></script>

    <script type="text/javascript">
    function back(){
    location.href="modellabel_manage.aspx?layerid=<%=Layerid%>"
 } 
 function show(){
    $("p").show();
 }function hide(){
 $("p").hide();
 }
    </script>

</head>
<body>
    <form id="Form1" runat="server">
    <table width="100%" border="0" cellspacing="0" align="center" cellpadding="0">
        <tr>
            <td height="2" bgcolor="#A49B81">
            </td>
        </tr>
        <tr>
            <td height="22" background="../images/position_bg.gif" bgcolor="#EEF6FE" style="background-repeat: repeat-y;
                background-position: left; padding-left: 6px; padding-top: 3px;">
                <asp:Label ID="header" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td height="1" bgcolor="#B0C9E8">
                <br />
            </td>
        </tr>
    </table>
    <div style="height: 30PX">
    </div>
    <table width="80%" border="0" align="center" cellspacing="0" cellpadding="0">
        <tr bgcolor="#2583BC">
            <th align="left">
                请填写模板标签信息
            </th>
        </tr>
    </table>
    <table width="80%" height="117" border="0" align="center" style="border: solid 1px #99C;">
        <tr>
            <td height="20" colspan="3">
            </td>
        </tr>
        <tr>
            <td width="30%" height="33" align="right">
                <font color="#FF0000">*</font>模板标签名称：
            </td>
            <td width="3%">
                &nbsp;
            </td>
            <td width="67%">
                <input type="text" id="name" value="" runat="server" maxlength="25" />
            </td>
        </tr>
        <tr>
            <td width="30%" height="33" align="right">
                <font color="#FF0000">*</font>模板标签定义：
            </td>
            <td width="3%">
                &nbsp;
            </td>
            <td width="67%">
                <input type="text" id="def" value="" runat="server" maxlength="50" />
            </td>
        </tr>
        <tr>
            <td align="right">
               <font color="#FF0000">*</font> 标签类型：
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:DropDownList runat="server" ID="labeltype">
                    <asp:ListItem Value="content" Text="静态内容" />
                    <asp:ListItem Value="method" Text="方法" />
                    <asp:ListItem Value="list" Text="列表" />
                    <asp:ListItem Value="sql" Text="SQL" />
                    <asp:ListItem Value="page" Text="分页" />
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
                   <td align="right">类型：</td>
                   <td>&nbsp;</td>
                   <td>
                       <asp:DropDownList ID="modeltype" runat="server">
                           <asp:ListItem Value="1">首页</asp:ListItem>
                           <asp:ListItem Value="2">活动</asp:ListItem>
                           <asp:ListItem Value="3">简介</asp:ListItem>
                           <asp:ListItem Value="5">赞助商及其他</asp:ListItem>
                       </asp:DropDownList>
                     </td>
                 </tr>  
        <tr>
            <td align="right">
                <font color="#FF0000">*</font>模板标签值：
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <textarea rows="10" cols="90" id="value" runat="server"></textarea>
            </td>
        </tr>
        <tr>
            <td align="right">
                <font color="#FF0000">*</font>是否生成html：
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                是：<input type="radio" id="htmlOk" name="html" onclick="show()" runat="server" />
                否：<input type="radio" id="htmlNo" name="html" onclick="hide()" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <p id="htmlpp" runat="server">
                   <font color="#FF0000">*</font> HtmlFileName:
                </p>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <p id="htmlp" runat="server">
                    <asp:TextBox ID="htmlFileName" runat="server"></asp:TextBox>
                </p>
            </td>
        </tr>
        <tr>
            <td height="33" align="right">
            </td>
            <td>
                &nbsp;
            </td>
            <td height="35" align="left">
                <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" />
                <input type="reset" name="Submit" value="重填" />
                <input type="button" name="Submit" onclick="back();" value="返回" />
                </td>
        </tr>
    </table>
    </form>
</body>
</html>
